<?php
class MapArea{
	var $id = -1;
	var $name = "";
	var $coords = array();
	
	function setName( $aName ){
		$this->name = $aName;
	}
	
	function setId($inId){
		$this->id = $inId;
		return;
	}
	function getCoords(){
		return $this->coords;
	}
	function addCoord($lat, $lng){
		$tmp = array("lat"=>$lat, "lng"=>$lng);
		$this->coords[] = $tmp;
		
	}
	function printCoords(){
		$tmpStr = "";
		foreach($this->coords as $key => $val){
			//$tempStr .= "{$val[lat]},{$val[lng]}\n";
			echo $val[lat] . "," . $val[lng] ."\n";
		}
		//echo $tmpStr;
	}

}
?>